project(tinyxml)
cmake_minimum_required(VERSION 3.5)
include_directories(./tinyxml)
include_directories(../googleTest/include/)
include_directories(../googleTest/)
aux_source_directory(../googleTest/src/ GOOGLE_SRC)
aux_source_directory(./tinyxml TINIXML_SRC)


set(TINIXML_SRC ${TINIXML_SRC} cfg_unit_test.cc TiXmlHelper.cpp TiXmlHelper.h)
set(CMAKE_CXX_COMPLIER g++)


set(BUILD_DIR ./build)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall") 
set(CMAKE_BUILD_TYPE Debug)
add_executable(tinyxml ${TINIXML_SRC}   main.cpp)


